tests: Fix print-editor
authorAlexander Mikhaylenko <alexm@gnome.org>
Sun, 10 May 2020 20:59:25 +0000 (01:59 +0500)
committerAlexander Mikhaylenko <alexm@gnome.org>
Sun, 10 May 2020 21:17:42 +0000 (02:17 +0500)
Don't assume GtkWindow is a container.

tests/print-editor.c

index a0a8fde4ee38c755209c95a5cc62261a2d30985b..646f3fe93f4f23d6a98393de7a179eb07973f167 100644 (file)
@@ -748,7 +748,7 @@ activate (GApplication *app)
   update_title (GTK_WINDOW (main_window));
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-  gtk_container_add (GTK_CONTAINER (main_window), box);
+  gtk_window_set_child (GTK_WINDOW (main_window), box);
 
   /* Create document  */
   sw = gtk_scrolled_window_new (NULL, NULL);